bitmap

public abstract Bitmap bitmap()

Returns a Bitmap that contains the image of the currently loaded web page.

The bitmap size depends on the size of the current browser instance and the device scale factor of the display where it is located at the moment. If the current browser size is empty, then the bitmap will be empty as well.

For example, if the device scale factor of the display where the browser instance is located at the moment is 2.0 and the browser size is 100x100, then the size of the bitmap is expected to be 200x200.

Since

7.1

See also

Throws

when the browser is already closed

when the bitmap can not be retrieved within 10 seconds